﻿<Window x:Class="_3DTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

        xmlns:ma="clr-namespace:Eniux.Windows.ThreeDEngine.Visual3Ds;assembly=Eniux.Windows.ThreeDEngine"
        xmlns:t="clr-namespace:Eniux.Windows.ThreeDEngine.Visual3Ds;assembly=Eniux.Windows.ThreeDEngine"
        xmlns:e="clr-namespace:Eniux.Windows.ThreeDEngine.ExtensionMethods;assembly=Eniux.Windows.ThreeDEngine"
        xmlns:local="clr-namespace:Eniux.Windows.ThreeDEngine.AttachObject;assembly=Eniux.Windows.ThreeDEngine"
        xmlns:base="clr-namespace:Eniux.Windows.ThreeDEngine.Base;assembly=Eniux.Windows.ThreeDEngine"
        Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
        <LinearGradientBrush x:Key="RainbowBrush" StartPoint="0,0" EndPoint="1,0">
            <LinearGradientBrush.GradientStops>
                <GradientStop Color="Red" Offset="0"/>
                <GradientStop Color="Orange" Offset="0.17"/>
                <GradientStop Color="Yellow" Offset="0.33"/>
                <GradientStop Color="Green" Offset="0.5"/>
                <GradientStop Color="Blue" Offset="0.67"/>
                <GradientStop Color="Indigo" Offset="0.84"/>
                <GradientStop Color="Violet" Offset="1"/>
            </LinearGradientBrush.GradientStops>
        </LinearGradientBrush>
    </Window.Resources>
    <Grid >
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF7D90A4" Offset="0"/>
                <GradientStop Color="#FF181A1C" Offset="1"/>
                <GradientStop Color="#FF6E7E8F" Offset="0.188"/>
                <GradientStop Color="#FF2A2F34" Offset="0.892"/>
                <GradientStop Color="#FF4C5762" Offset="0.52"/>
            </LinearGradientBrush>
        </Grid.Background>
        <!--ShowCameraInfo="True"  local:AttachCamera.ShowCameraTarget="True" ShowCoordinateSystem="True" ShowFieldOfView="True" ShowFrameRate="True" ShowTriangleCountInfo="True"-->
        <base:EniuxViewport3D   x:Name="port" ShowViewCube="True">

            <!--<t:GridLinesVisual3D   MajorLineColor="Gray" MinorLineColor="Gray"/>-->
            <ModelVisual3D>
                <ModelVisual3D.Content>
                    <AmbientLight Color="White"/>
                </ModelVisual3D.Content>
            </ModelVisual3D>
   
        </base:EniuxViewport3D>


        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Bottom" Opacity="0.5" >
            <Slider x:Name="diameterSlider" Value="5" Minimum="1" Maximum="20" Width="150" Margin="10"/>
            <Slider x:Name="thetaDivSlider" Value="1" Minimum="0" Maximum="10" Width="150" Margin="10"/>
        </StackPanel>
    </Grid>
</Window>
